﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using System.Threading;
using NSsh.Server.Services;
using NSsh.Server.ChannelLayer.Console;
using NSsh.Common.Utility;
using NSsh.Common.Packets;
using System.IO;
using System.Security.Principal;

namespace NSsh.Server.ChannelLayer
{
    public class CommandChannelConsumer : BaseConsoleChannelConsumer, IChannelCommandConsumer
    {
        protected override IConsole CreateConsole()
        {
            IImpersonationProvider impersonationProvider = Dependency.Resolve<IImpersonationProvider>();
            return new CommandConsole(impersonationProvider, AuthenticatedIdentity, Password, Command);
        }

        public string Command { get; set; }
    }
}
